<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <#include "${ctx}/include/header.ftl">
</head>
<body>
<div class="wrapper">
    <div class="main-content">
        <div class="box box-main">
            <form id="inputForm" action="${ctx}/configServer/save" class="form-horizontal">
                <input type="hidden" name="id" value="${config.id!}">
                <div class="box-body">
                    <div class="form-unit">基本信息</div>
                    <div class="row">
                        <div class="col-xs-6">
                            <div class="form-group">
                                <label class="control-label col-sm-4" title="">
                                    <span class="required ">*</span> 键名：
                                </label>
                                <div class="col-sm-8">
                                    <input type="text" name="key" value="${config.key!}" class="form-control required" autocomplete="off"/>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-6">
                            <div class="form-group">
                                <label class="control-label col-sm-4" title="">
                                    <span class="required ">*</span> 键值：
                                </label>
                                <div class="col-sm-8">
                                    <input type="text" name="value" value="${config.value!}" class="form-control required" autocomplete="off"/>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-6">
                            <div class="form-group">
                                <label class="control-label col-sm-4" title="">
                                    <span class="required ">*</span> 应用名称：
                                </label>
                                <div class="col-sm-8">
                                    <input type="text" name="application" value="${config.application!}" class="form-control required" autocomplete="off"/>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-6">
                            <div class="form-group">
                                <label class="control-label col-sm-4" title="">
                                    <span class="required ">*</span> 应用环境：
                                </label>
                                <div class="col-sm-8">
                                    <select class="form-control selectpicker" name="profile">
                                    <#list dictList("configServer.profile") as dict>
                                        <#if config.profile?? && config.profile == dict.value>
                                            <option value="${dict.value}" selected>${dict.name}</option>
                                        <#else>
                                            <option value="${dict.value}">${dict.name}</option>
                                        </#if>
                                    </#list>
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-6">
                            <div class="form-group">
                                <label class="control-label col-sm-4" title="">
                                    <span class="required ">*</span> 应用模块：
                                </label>
                                <div class="col-sm-8">
                                    <input type="text" name="label" value="${config.label!}" class="form-control required" autocomplete="off"/>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
<#include "${ctx}/include/footer.ftl">
<#include "${ctx}/include/form.ftl">
</html>